<?php if( count( $this->live_list ) > 0 ) :
    foreach( $this->live_list as $live ): 
        list( $y, $m, $d ) = explode( '-', $live['live_date'] );
        ?>
        <tr class="<?php echo ( in_array( $live['live_id'], (array)$this->selected ) ? 'selected' : 'selectable' ) ?>" id="<?php echo $live['live_id'] ?>">
            <td class="date">
                <h3>
                    <b><?php echo $d ?> <?php echo $this->months[sprintf( '%01d', $m )] ?> <?php echo $y ?></b>
                    <span><?php echo $this->days[date( 'N', mktime( $hour, $minute, $second, $m, $d, $y ) )] ?></span>
                </h3>		
            </td>
            <td class="artists">
            <?php 
            $main_artists = null;
            $openingact_artists = null;
            if( count( $live['artists']['main'] ) > 0 ):
                foreach( $live['artists']['main'] as $artist ):  
                    $main_artists .= $artist['artist_name'] .', ';
                endforeach;
            endif; ?>

            <strong><?php echo substr( $main_artists, 0, -2 ) ?></strong>
            <?php 
            if( count( $live['artists']['openingact'] ) > 0 ):
                foreach( $live['artists']['openingact'] as $artist ):  
                    $openingact_artists .= $artist['artist_name'] .', ';
                endforeach; 
            ?>
            <br/> 
            + <span><?php echo substr( $openingact_artists, 0, -2 ) ?></span>
            <?php endif; ?>
            </td>
            <td class="location">
                <?php echo $live['location_name'] ?>, <strong><?php echo $live['location_city'] ?></strong> (<?php echo $this->province[$live['location_province_id']]['province_short_name'] ?>)
            </td>
	    <td title="Selezionata" class="checked">
		<input class="hidden" type="checkbox" name="events[]" id="event_check_<?php echo $live['live_id'] ?>" value="<?php echo $live['live_id'] ?>" <?php echo ( in_array( $live['live_id'], (array)$this->selected ) ? 'checked="checked"' : '' ) ?> />
	    </td>		
        </tr>
    <?php endforeach;
else:
    ?><tr class="result"><td colspan="5">Nessun elemento presente...</td></tr> <?php	
endif;?>